package com.hrsystem.entity;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ToString
public class PersonalData {
    private Integer id;
    private Integer adminId;
    private Integer fatherId;
    private Integer spouseId;
    @NotNull(message = "姓名不能为空", groups = {PersonalDataIntoChildren.class})
    private String name;
    private String generation;
    private String ranking;
    private String sex;
    private String beforname;
    private String minname;
    private String age;
    private String education;
    private String military;
    private String position;
    private String occupation;
    private String company;
    private String birthDate;
    private String birthTime;
    private String birthPlace;
    private String livingState;
    private String deathDate;
    private String deathTime;
    private String deathCause;
    private String deathPlace;
    private String funeralPlace;
    private String profile;
    private String img;
//    private String minImg;
//    private String maxImg;
    private String addressVideo;

    //子代
    private List<PersonalData> children;
    private List<PersonalData> ChildrenSpouse;

}
